home *** CD-ROM | disk | FTP | other *** search
/ DOpus Plus / DOpus Plus.iso / Tutorial / C Guide / Simple_Module2 / includes / Project.h < prev    next >
C/C++ Source or Header  |  1998-08-25  |  3KB  |  98 lines

  1. /*******************************************************************
  2.  
  3.    Project.h
  4.  
  5.    It is just the way how do I my work...
  6.    This is included in every other own headerfile to make globally
  7.    defines,...
  8.  
  9. *********************************************************************/
  10. // At first the "include" section
  11.  
  12. // useful for SAS
  13. #include <dos.h>
  14.  
  15. #include <proto/dos.h>
  16. #include <proto/asl.h>
  17. #include <proto/exec.h>
  18. #include <proto/utility.h>
  19. #include <proto/gadtools.h>
  20. #include <proto/intuition.h>
  21.  
  22. #include <dos/exall.h>
  23. #include <dos/dostags.h>
  24. #include <exec/memory.h>
  25. #include <exec/execbase.h>
  26.  
  27. /* catalog file */
  28. #define  CATCOMP_NUMBERS
  29. // since this header is used also later from the subdirs,
  30. // I must make a small trick
  31. #ifdef PARENT
  32. #include "/includes/buildin.strings"
  33. #else
  34. #include "includes/buildin.strings"
  35. #endif
  36.  
  37. #define  _DOPUS_MODULE_DEF
  38. #include <dopus/modules.h>
  39.  
  40. /* contains some replacements for string functions - by Dirk Stoecker */
  41. #define  SDI_TO_ANSI
  42. // jippi...
  43. #ifdef PARENT
  44. #include "//sc/include/sdi_std.h"
  45. #else
  46. #include "/sc/include/sdi_std.h"
  47. #endif
  48.  
  49. /********************************************************************/
  50. // now we do our own stuff
  51.  
  52. #define MODULE_NAME        "example.module"
  53. #define MODULE_VER_NUMBER  1
  54. #define MODULE_CATALOG     "example.catalog"
  55. #define MODULE_FLAGS       0
  56. #define MODULE_FUNC_COUNT  3
  57.  
  58. #define VERSION_STRING     MODULE_NAME " 1.1"
  59.  
  60.  
  61. // FUNCx_DESCRIPTION is in "includes/buildin.strings" defined
  62. // (will be created by CatComp from "includes/buildin.cd"...)
  63.  
  64. #define COMMAND_0          "ExampleRequest"
  65. #define FUNC0_ID           0
  66. #define FUNC0_FLAGS        0
  67. #define FUNC0_TEMPLATE     "Just_add_some_signs"
  68.  
  69. #define COMMAND_1          "ExampleWindow"
  70. #define FUNC1_ID           1
  71. #define FUNC1_FLAGS        0
  72. // this template we use later...
  73. #define FUNC1_TEMPLATE     "AutoClose/N,SmallBorder/K,Quit/S"
  74.  
  75. #define COMMAND_2          "_HiddenCommand_"
  76. #define FUNC2_ID           2
  77. #define FUNC2_FLAGS        FUNCF_PRIVATE
  78. #define FUNC2_TEMPLATE     0
  79.  
  80. /********************************************************************/
  81. /* You may declare here some variables, if you need them globally.  */
  82. /* We need them here not and we use for each function it's own file */
  83. /* and header.                                                      */
  84.  
  85.  
  86. /********************************************************************/
  87. // make our memorypool (modinit.c) globally accessable
  88.  
  89. extern APTR mempool;
  90.  
  91. // and now some prototypes for our functions
  92.  
  93. extern void ExampleRequest( STRPTR args, struct Screen *screen, IPCData *ipc );
  94. extern void OwnWindow( STRPTR args, struct Screen *screen );
  95. extern void HiddenCommand( STRPTR args, IPCData *ipc, IPCData *main_ipc );
  96.  
  97.  
  98.